package com.zmn.plat.common.dictionary;

import com.zmn.common.dictionary.DictModel;
import com.zmn.plat.common.constant.ChannelConsts;

import java.util.ArrayList;
import java.util.List;

/**
 * 类描述:渠道相关字典
 *
 * @author linfeng
 * @since 2019/10/31/14:45
 */
public class ChannelDict {
    /**
     * 渠道接入类型集合
     */
    private static final List<DictModel> CHANNEL_ACCESS_MODE_LIST_ITEMS = new ArrayList<>();

    /**
     * 渠道接入类型
     *
     * @return
     */
    public static List<DictModel> getChannelAccessModeListItems() {
        if (CHANNEL_ACCESS_MODE_LIST_ITEMS.size() == 0) {
            CHANNEL_ACCESS_MODE_LIST_ITEMS.add(new DictModel(ChannelConsts.CHANNEL_ACCESS_MODE_TELEPHONE_TRAFFIC, "话务接入"));
            CHANNEL_ACCESS_MODE_LIST_ITEMS.add(new DictModel(ChannelConsts.CHANNEL_ACCESS_MODE_NETWORK, "网络客服接入"));
            CHANNEL_ACCESS_MODE_LIST_ITEMS.add(new DictModel(ChannelConsts.CHANNEL_ACCESS_MODE_H5, "H5"));
            CHANNEL_ACCESS_MODE_LIST_ITEMS.add(new DictModel(ChannelConsts.CHANNEL_ACCESS_MODE_API, "API"));
            CHANNEL_ACCESS_MODE_LIST_ITEMS.add(new DictModel(ChannelConsts.CHANNEL_ACCESS_MODE_TEMPORARY, "临时接入"));
            CHANNEL_ACCESS_MODE_LIST_ITEMS.add(new DictModel(ChannelConsts.CHANNEL_ACCESS_MODE_PORTAL, "渠道门户接入"));
            CHANNEL_ACCESS_MODE_LIST_ITEMS.add(new DictModel(ChannelConsts.CHANNEL_ACCESS_MODE_BRAND, "品牌站点接入"));
        }
        return CHANNEL_ACCESS_MODE_LIST_ITEMS;
    }
}
